#ifndef ALGORYTMA_H
#define ALGORYTMA_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QGraphicsView>
#include <QtGui/QLabel>
#include <QtGui/QSlider>
#include <QtGui/QWidget>
#include <QtGui/QDialog>
#include <QString>
#include <QPainter>
#include <QVector>

class FileLoader;

class AlgorytmA : public QDialog
{
    Q_OBJECT

public:
    
    QLabel* ZImage; //image, z position
    QSlider *zSlider; //number of z position
    QLabel *zLabel; //label to slider

    FileLoader *fl; //file loader
    
    int mouseX; // x mouse position
    int mouseY; // y mouse position
    int zPosition; //mumber of z position in images
    
    QVector<int> *xPosition;
    QVector<int> *yPosition;
    
    
    void mousePressEvent (QMouseEvent * event); 
    AlgorytmA::AlgorytmA(QWidget * parent, int maxX, int maxY, int maxZ);

private:
    void setupUi(QWidget *mainField, int maxX, int maxY, int maxZ);

private slots:
    void updateZ(int val);

};
#endif // ALGORYTMA_H
